// Copyright 2013 Google Inc. All Rights Reserved.auto

#include <errno.h>
#include <irt_syscalls.h>
#include <unistd.h>
#include <sys/stat.h>

int rmdir(const char *pathname) {
  if (__nacl_irt_rmdir) {
    int result = __nacl_irt_rmdir(pathname);
    if (result != 0) {
      errno = result;
      return -1;
    }
    return 0;
  }
  errno = ENOSYS;
  return -1;
}

